Skip to content

Feature/array as param#275

Merged
boriel merged 14 commits intomasterfrom
feature/array_as_param
Apr 12, 2020
Merged

Feature/array as param#275
boriel merged 14 commits intomasterfrom
feature/array_as_param

Conversation

@boriel
Copy link
Copy Markdown
Collaborator

@boriel boriel commented Apr 12, 2020

No description provided.

boriel added 14 commits April 10, 2020 13:22
Cannot pass an Array byval
This commit only affects the Symbol Table.
The parser still has to allow the syntax and use this method.
The size of an array passed by ref in the stack is
the size of it's pointer (2 bytes for Z80)
 * Arrays will be passed always by Ref
 * Uses the same syntax as in FreeBasic
 * Allows different array-bounds to use the same function

Still some extra checks pending
Checks a function with array parameters is being called correctly.
Also test updated.
When invoking a function check also their arguments
(var, arrays) matches correctly.
This requires now to have uinteger type
@boriel boriel merged commit 3210892 into master Apr 12, 2020
@boriel boriel deleted the feature/array_as_param branch April 12, 2020 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant